home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'AxCtrls.pas' rev: 3.00
-
- #ifndef AxCtrlsHPP
- #define AxCtrlsHPP
- #include <Menus.hpp>
- #include <StdVCL.hpp>
- #include <ExtCtrls.hpp>
- #include <Forms.hpp>
- #include <Controls.hpp>
- #include <Graphics.hpp>
- #include <Classes.hpp>
- #include <ComObj.hpp>
- #include <SysUtils.hpp>
- #include <ActiveX.hpp>
- #include <Messages.hpp>
- #include <Windows.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- #include <objsafe.h>
-
-
- namespace Axctrls
- {
- //-- type declarations -------------------------------------------------------
- class DELPHICLASS TOleStream;
- class PASCALIMPLEMENTATION TOleStream : public Classes::TStream
- {
- typedef Classes::TStream inherited;
-
- private:
- _di_IStream FStream;
-
- public:
- __fastcall TOleStream(const _di_IStream Stream);
- virtual int __fastcall Read(void *Buffer, int Count);
- virtual int __fastcall Write(const void *Buffer, int Count);
- virtual int __fastcall Seek(int Offset, Word Origin);
- public:
- /* TObject.Destroy */ __fastcall virtual ~TOleStream(void) { }
-
- };
-
- class DELPHICLASS TAggregatedObject;
- class PASCALIMPLEMENTATION TAggregatedObject : public System::TObject
- {
- typedef System::TObject inherited;
-
- private:
- void *FController;
- _di_IUnknown __fastcall GetController(void);
-
- protected:
- HRESULT __stdcall QueryInterface(const GUID &IID, /* out */ void *Obj);
- int __stdcall _AddRef(void);
- int __stdcall _Release(void);
-
- public:
- __fastcall TAggregatedObject(_di_IUnknown Controller);
- __property _di_IUnknown Controller = {read=GetController};
- public:
- /* TObject.Destroy */ __fastcall virtual ~TAggregatedObject(void) { }
-
- };
-
- class DELPHICLASS TContainedObject;
- class PASCALIMPLEMENTATION TContainedObject : public Axctrls::TAggregatedObject
- {
- typedef Axctrls::TAggregatedObject inherited;
-
- private:
- void *__IUnknown; /* IUnknown */
-
- public:
- operator IUnknown*(void) { return (IUnknown*)&__IUnknown; }
-
- protected:
- HIDESBASE virtual HRESULT __stdcall QueryInterface(const GUID &IID, /* out */ void *Obj);
- public:
- /* TAggregatedObject.Create */ __fastcall TContainedObject(_di_IUnknown Controller) : Axctrls::TAggregatedObject(
- Controller) { }
-
- public:
- /* TObject.Destroy */ __fastcall virtual ~TContainedObject(void) { }
-
- };
-
- typedef void __fastcall (__closure *TConnectEvent)(const _di_IUnknown Sink, bool Connecting);
-
- enum TConnectionKind { ckSingle, ckMulti };
-
- class DELPHICLASS TConnectionPoint;
- class DELPHICLASS TConnectionPoints;
- class PASCALIMPLEMENTATION TConnectionPoints : public Axctrls::TAggregatedObject
- {
- typedef Axctrls::TAggregatedObject inherited;
-
- private:
- void *__IConnectionPointContainer; /* IConnectionPointContainer */
-
- public:
- operator IConnectionPointContainer*(void) { return (IConnectionPointContainer*)&__IConnectionPointContainer; }
-
-
- private:
- Classes::TList* FConnectionPoints;
-
- protected:
- HRESULT __stdcall EnumConnectionPoints(/* out */ _di_IEnumConnectionPoints &enumconn);
- HRESULT __stdcall FindConnectionPoint(const GUID &iid, /* out */ _di_IConnectionPoint &cp);
-
- public:
- __fastcall TConnectionPoints(const _di_IUnknown Controller);
- __fastcall virtual ~TConnectionPoints(void);
- TConnectionPoint* __fastcall CreateConnectionPoint(const GUID &IID, TConnectionKind Kind, TConnectEvent
- OnConnect);
- };
-
- class PASCALIMPLEMENTATION TConnectionPoint : public Axctrls::TContainedObject
- {
- typedef Axctrls::TContainedObject inherited;
-
- private:
- void *__IConnectionPoint; /* IConnectionPoint */
-
- public:
- operator IConnectionPoint*(void) { return (IConnectionPoint*)&__IConnectionPoint; }
-
- private:
- TConnectionPoints* FContainer;
- GUID FIID;
- Classes::TList* FSinkList;
- TConnectEvent FOnConnect;
- TConnectionKind FKind;
- int __fastcall AddSink(const _di_IUnknown Sink);
- void __fastcall RemoveSink(int Cookie);
-
- protected:
- HRESULT __stdcall GetConnectionInterface(/* out */ GUID &iid);
- HRESULT __stdcall GetConnectionPointContainer(/* out */ _di_IConnectionPointContainer &cpc);
- HRESULT __stdcall Advise(const _di_IUnknown unkSink, /* out */ int &dwCookie);
- HRESULT __stdcall Unadvise(int dwCookie);
- HRESULT __stdcall EnumConnections(/* out */ _di_IEnumConnections &enumconn);
-
- public:
- __fastcall TConnectionPoint(TConnectionPoints* Container, const GUID &IID, TConnectionKind Kind, TConnectEvent
- OnConnect);
- __fastcall virtual ~TConnectionPoint(void);
- };
-
- typedef void __fastcall (__closure *TDefinePropertyPage)(const GUID &GUID);
-
- __dispinterface IAmbientDispatch;
- typedef System::DelphiInterface<IAmbientDispatch> _di_IAmbientDispatch;
- __dispinterface IAmbientDispatch: public IDispatch /* __guid="{00020400-0000-0000-C000-000000000046}" */
-
- {
-
- };
-
- class DELPHICLASS TActiveXControl;
- class DELPHICLASS TActiveXControlFactory;
- typedef System::TMetaClass*TActiveXControlClass;
-
- class PASCALIMPLEMENTATION TActiveXControlFactory : public Comobj::TAutoObjectFactory
- {
- typedef Comobj::TAutoObjectFactory inherited;
-
- private:
- System::TMetaClass*FWinControlClass;
- int FMiscStatus;
- int FToolboxBitmapID;
- _di_ITypeInfo FEventTypeInfo;
- GUID FEventIID;
- Classes::TStringList* FVerbs;
- Classes::TStringList* FLicFileStrings;
- bool FLicenseFileRead;
-
- protected:
- virtual System::AnsiString __fastcall GetLicenseFileName(void);
- virtual bool __fastcall HasMachineLicense(void);
-
- public:
- __fastcall TActiveXControlFactory(Comobj::TComServerObject* ComServer, System::TMetaClass* ActiveXControlClass
- , System::TMetaClass* WinControlClass, const GUID &ClassID, int ToolboxBitmapID, const System::AnsiString
- LicStr, int MiscStatus);
- __fastcall virtual ~TActiveXControlFactory(void);
- void __fastcall AddVerb(int Verb, const System::AnsiString VerbName);
- virtual void __fastcall UpdateRegistry(bool Register);
- __property GUID EventIID = {read=FEventIID};
- __property _di_ITypeInfo EventTypeInfo = {read=FEventTypeInfo};
- __property int MiscStatus = {read=FMiscStatus, nodefault};
- __property int ToolboxBitmapID = {read=FToolboxBitmapID, nodefault};
- __property System::TMetaClass* WinControlClass = {read=FWinControlClass};
- };
-
- class PASCALIMPLEMENTATION TActiveXControl : public Comobj::TAutoObject
- {
- typedef Comobj::TAutoObject inherited;
-
- private:
- void *__IPersistPropertyBag; /* IPersistPropertyBag [Save=PersistPropBagSave, Load=PersistPropBagLoad,
- InitNew=PersistPropBagInitNew] */
- void *__IPersistStreamInit; /* IPersistStreamInit [Save=PersistStreamSave, Load=PersistStreamLoad]
- */
- void *__IPersistStorage; /* IPersistStorage [Save=PersistStorageSave, Load=PersistStorageLoad, InitNew=PersistStorageInitNew
- ] */
- void *__IObjectSafety; /* IObjectSafety */
- void *__IOleObject; /* IOleObject */
- void *__IOleControl; /* IOleControl */
- void *__IOleInPlaceObject; /* IOleInPlaceObject */
- void *__IOleInPlaceActiveObject; /* IOleInPlaceActiveObject */
- void *__IViewObject; /* IViewObject */
- void *__IViewObject2; /* IViewObject2 [GetExtent=ViewObjectGetExtent] */
- void *__IPerPropertyBrowsing; /* IPerPropertyBrowsing */
- void *__ISpecifyPropertyPages; /* ISpecifyPropertyPages */
- void *__ISimpleFrameSite; /* ISimpleFrameSite */
-
- public:
- operator ISimpleFrameSite*(void) { return (ISimpleFrameSite*)&__ISimpleFrameSite; }
- operator ISpecifyPropertyPages*(void) { return (ISpecifyPropertyPages*)&__ISpecifyPropertyPages; }
- operator IPerPropertyBrowsing*(void) { return (IPerPropertyBrowsing*)&__IPerPropertyBrowsing; }
- operator IViewObject2*(void) { return (IViewObject2*)&__IViewObject2; }
- operator IViewObject*(void) { return (IViewObject*)&__IViewObject; }
- operator IOleInPlaceActiveObject*(void) { return (IOleInPlaceActiveObject*)&__IOleInPlaceActiveObject; }
-
- operator IOleInPlaceObject*(void) { return (IOleInPlaceObject*)&__IOleInPlaceObject; }
- operator IOleControl*(void) { return (IOleControl*)&__IOleControl; }
- operator IOleObject*(void) { return (IOleObject*)&__IOleObject; }
- operator IObjectSafety*(void) { return (IObjectSafety*)&__IObjectSafety; }
- operator IPersistStorage*(void) { return (IPersistStorage*)&__IPersistStorage; }
- operator IPersistStreamInit*(void) { return (IPersistStreamInit*)&__IPersistStreamInit; }
- operator IPersistPropertyBag*(void) { return (IPersistPropertyBag*)&__IPersistPropertyBag; }
-
- private:
- TActiveXControlFactory* FControlFactory;
- TConnectionPoints* FConnectionPoints;
- _di_IUnknown FEventSink;
- TConnectionPoint* FPropertySinks;
- int FObjectSafetyFlags;
- _di_IOleClientSite FOleClientSite;
- _di_IOleControlSite FOleControlSite;
- _di_ISimpleFrameSite FSimpleFrameSite;
- _di_IAmbientDispatch FAmbientDispatch;
- _di_IOleInPlaceSite FOleInPlaceSite;
- _di_IOleInPlaceFrame FOleInPlaceFrame;
- _di_IOleInPlaceUIWindow FOleInPlaceUIWindow;
- _di_IOleAdviseHolder FOleAdviseHolder;
- _di_IAdviseSink FAdviseSink;
- int FAdviseFlags;
- Controls::TWinControl* FControl;
- Controls::TWndMethod FControlWndProc;
- Controls::TWinControl* FWinControl;
- bool FIsDirty;
- bool FInPlaceActive;
- bool FUIActive;
- bool FEventsFrozen;
- HRESULT __fastcall CreateAdviseHolder(void);
- void __fastcall EventConnect(const _di_IUnknown Sink, bool Connecting);
- int __fastcall GetPropertyID(const System::WideString PropertyName);
- void __fastcall RecreateWnd(void);
- void __fastcall ViewChanged(void);
-
- protected:
- HRESULT __stdcall GetClassID(/* out */ GUID &classID);
- HRESULT __stdcall PersistPropBagInitNew(void);
- HRESULT __stdcall PersistPropBagLoad(const _di_IPropertyBag pPropBag, const _di_IErrorLog pErrorLog
- );
- HRESULT __stdcall PersistPropBagSave(const _di_IPropertyBag pPropBag, BOOL fClearDirty, BOOL fSaveAllProperties
- );
- HRESULT __stdcall IsDirty(void);
- HRESULT __stdcall PersistStreamLoad(const _di_IStream stm);
- HRESULT __stdcall PersistStreamSave(const _di_IStream stm, BOOL fClearDirty);
- HRESULT __stdcall GetSizeMax(/* out */ System::Comp &cbSize);
- HRESULT __stdcall InitNew(void);
- HRESULT __stdcall PersistStorageInitNew(const _di_IStorage stg);
- HRESULT __stdcall PersistStorageLoad(const _di_IStorage stg);
- HRESULT __stdcall PersistStorageSave(const _di_IStorage stgSave, BOOL fSameAsLoad);
- HRESULT __stdcall SaveCompleted(const _di_IStorage stgNew);
- HRESULT __stdcall HandsOffStorage(void);
- virtual HRESULT __stdcall GetInterfaceSafetyOptions(const GUID &IID, PDWORD pdwSupportedOptions, PDWORD
- pdwEnabledOptions);
- virtual HRESULT __stdcall SetInterfaceSafetyOptions(const GUID &IID, int dwOptionSetMask, int dwEnabledOptions
- );
- HRESULT __stdcall SetClientSite(const _di_IOleClientSite clientSite);
- HRESULT __stdcall GetClientSite(/* out */ _di_IOleClientSite &clientSite);
- HRESULT __stdcall SetHostNames(wchar_t * szContainerApp, wchar_t * szContainerObj);
- HRESULT __stdcall Close(int dwSaveOption);
- HRESULT __stdcall SetMoniker(int dwWhichMoniker, const _di_IMoniker mk);
- HRESULT __stdcall GetMoniker(int dwAssign, int dwWhichMoniker, /* out */ _di_IMoniker &mk);
- HRESULT __stdcall InitFromData(const _di_IDataObject dataObject, BOOL fCreation, int dwReserved);
- HRESULT __stdcall GetClipboardData(int dwReserved, /* out */ _di_IDataObject &dataObject);
- HRESULT __stdcall DoVerb(int iVerb, Windows::PMsg msg, const _di_IOleClientSite activeSite, int lindex
- , HWND hwndParent, const Windows::TRect &posRect);
- HRESULT __stdcall EnumVerbs(/* out */ _di_IEnumOLEVERB &enumOleVerb);
- HRESULT __stdcall Update(void);
- HRESULT __stdcall IsUpToDate(void);
- HRESULT __stdcall GetUserClassID(/* out */ GUID &clsid);
- HRESULT __stdcall GetUserType(int dwFormOfType, /* out */ wchar_t * &pszUserType);
- HRESULT __stdcall SetExtent(int dwDrawAspect, const tagPOINT &size);
- HRESULT __stdcall GetExtent(int dwDrawAspect, /* out */ tagPOINT &size);
- HRESULT __stdcall Advise(const _di_IAdviseSink advSink, /* out */ int &dwConnection);
- HRESULT __stdcall Unadvise(int dwConnection);
- HRESULT __stdcall EnumAdvise(/* out */ _di_IEnumSTATDATA &enumAdvise);
- HRESULT __stdcall GetMiscStatus(int dwAspect, /* out */ int &dwStatus);
- HRESULT __stdcall SetColorScheme(const tagLOGPALETTE &logpal);
- HRESULT __stdcall GetControlInfo(tagCONTROLINFO &ci);
- HRESULT __stdcall OnMnemonic(Windows::PMsg msg);
- HRESULT __stdcall OnAmbientPropertyChange(int dispid);
- HRESULT __stdcall FreezeEvents(BOOL bFreeze);
- HRESULT __stdcall GetWindow(/* out */ HWND &wnd);
- HRESULT __stdcall ContextSensitiveHelp(BOOL fEnterMode);
- HRESULT __stdcall InPlaceDeactivate(void);
- HRESULT __stdcall UIDeactivate(void);
- HRESULT __stdcall SetObjectRects(const Windows::TRect &rcPosRect, const Windows::TRect &rcClipRect)
- ;
- HRESULT __stdcall ReactivateAndUndo(void);
- HRESULT __stdcall TranslateAccelerator(tagMSG &msg);
- HRESULT __stdcall OnFrameWindowActivate(BOOL fActivate);
- HRESULT __stdcall OnDocWindowActivate(BOOL fActivate);
- HRESULT __stdcall ResizeBorder(const Windows::TRect &rcBorder, const _di_IOleInPlaceUIWindow uiWindow
- , BOOL fFrameWindow);
- HRESULT __stdcall EnableModeless(BOOL fEnable);
- HRESULT __stdcall Draw(int dwDrawAspect, int lindex, void * pvAspect, Activex::PDVTargetDevice ptd,
- HDC hicTargetDev, HDC hdcDraw, Windows::PRect prcBounds, Windows::PRect prcWBounds, Activex::TContinueFunc
- fnContinue, int dwContinue);
- HRESULT __stdcall GetColorSet(int dwDrawAspect, int lindex, void * pvAspect, Activex::PDVTargetDevice
- ptd, HDC hicTargetDev, /* out */ Windows::PLogPalette &colorSet);
- HRESULT __stdcall Freeze(int dwDrawAspect, int lindex, void * pvAspect, /* out */ int &dwFreeze);
- HRESULT __stdcall Unfreeze(int dwFreeze);
- HRESULT __stdcall SetAdvise(int aspects, int advf, const _di_IAdviseSink advSink);
- HRESULT __stdcall GetAdvise(Windows::PLongint pAspects, Windows::PLongint pAdvf, /* out */ _di_IAdviseSink
- &advSink);
- HRESULT __stdcall ViewObjectGetExtent(int dwDrawAspect, int lindex, Activex::PDVTargetDevice ptd, /* out */
- tagPOINT &size);
- HRESULT __stdcall GetDisplayString(int dispid, /* out */ System::WideString &bstr);
- HRESULT __stdcall MapPropertyToPage(int dispid, /* out */ GUID &clsid);
- HRESULT __stdcall GetPredefinedStrings(int dispid, /* out */ tagCALPOLESTR &caStringsOut, /* out */
- tagCADWORD &caCookiesOut);
- HRESULT __stdcall GetPredefinedValue(int dispid, int dwCookie, /* out */ System::OleVariant &varOut
- );
- HRESULT __stdcall GetPages(/* out */ tagCAUUID &pages);
- HRESULT __stdcall PreMessageFilter(HWND wnd, int msg, int wp, int lp, /* out */ int &res, /* out */
- int &Cookie);
- HRESULT __stdcall PostMessageFilter(HWND wnd, int msg, int wp, int lp, /* out */ int &res, int Cookie
- );
- HRESULT __safecall Get_BackColor(int &Get_BackColor_result);
- HRESULT __safecall Get_Caption(System::WideString &Get_Caption_result);
- HRESULT __safecall Get_Enabled(Word &Get_Enabled_result);
- HRESULT __safecall Get_Font(_di_IFontDisp &Get_Font_result);
- HRESULT __safecall Get_ForeColor(int &Get_ForeColor_result);
- HRESULT __safecall Get_HWnd(int &Get_HWnd_result);
- HRESULT __safecall Get_TabStop(Word &Get_TabStop_result);
- HRESULT __safecall Get_Text(System::WideString &Get_Text_result);
- HRESULT __safecall Set_BackColor(int Value);
- HRESULT __safecall Set_Caption(const System::WideString Value);
- HRESULT __safecall Set_Enabled(Word Value);
- HRESULT __safecall Set_Font(const _di_IFontDisp Value);
- HRESULT __safecall Set_ForeColor(int Value);
- HRESULT __safecall Set_TabStop(Word Value);
- HRESULT __safecall Set_Text(const System::WideString Value);
- void __fastcall StdClickEvent(System::TObject* Sender);
- void __fastcall StdDblClickEvent(System::TObject* Sender);
- void __fastcall StdKeyDownEvent(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
- void __fastcall StdKeyPressEvent(System::TObject* Sender, char &Key);
- void __fastcall StdKeyUpEvent(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
- void __fastcall StdMouseDownEvent(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState
- Shift, int X, int Y);
- void __fastcall StdMouseMoveEvent(System::TObject* Sender, Classes::TShiftState Shift, int X, int Y
- );
- void __fastcall StdMouseUpEvent(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState
- Shift, int X, int Y);
- HRESULT __fastcall InPlaceActivate(bool ActivateUI);
- void __fastcall ShowPropertyDialog(void);
- virtual void __fastcall DefinePropertyPages(TDefinePropertyPage DefinePropertyPage);
- virtual void __fastcall EventSinkChanged(const _di_IUnknown EventSink);
- virtual bool __fastcall GetPropertyString(int DispID, System::AnsiString &S);
- virtual bool __fastcall GetPropertyStrings(int DispID, Classes::TStrings* Strings);
- virtual void __fastcall GetPropertyValue(int DispID, int Cookie, System::OleVariant &Value);
- virtual void __fastcall GetPropFromBag(const System::WideString PropName, int DispatchID, _di_IPropertyBag
- PropBag, _di_IErrorLog ErrorLog);
- virtual void __fastcall InitializeControl(void);
- virtual void __fastcall LoadFromStream(const _di_IStream Stream);
- virtual void __fastcall PerformVerb(int Verb);
- virtual void __fastcall PutPropInBag(const System::WideString PropName, int DispatchID, _di_IPropertyBag
- PropBag);
- virtual void __fastcall SaveToStream(const _di_IStream Stream);
- virtual void __fastcall WndProc(Messages::TMessage &Message);
-
- public:
- __fastcall virtual ~TActiveXControl(void);
- virtual void __fastcall Initialize(void);
- virtual HRESULT __stdcall ObjQueryInterface(const GUID &IID, /* out */ void *Obj);
- bool __fastcall PropRequestEdit(const System::WideString PropertyName);
- void __fastcall PropChanged(const System::WideString PropertyName);
- __property Controls::TWinControl* Control = {read=FControl};
- public:
- /* TComObject.Create */ __fastcall TActiveXControl(void) : Comobj::TAutoObject() { }
- /* TComObject.CreateAggregated */ __fastcall TActiveXControl(const _di_IUnknown Controller) : Comobj::
- TAutoObject(Controller) { }
- /* TComObject.CreateFromFactory */ __fastcall TActiveXControl(Comobj::TComObjectFactory* Factory, const
- _di_IUnknown Controller) : Comobj::TAutoObject(Factory, Controller) { }
-
- };
-
- class DELPHICLASS TPropertyPage;
- class DELPHICLASS TPropertyPageImpl;
- class PASCALIMPLEMENTATION TPropertyPageImpl : public Axctrls::TAggregatedObject
- {
- typedef Axctrls::TAggregatedObject inherited;
-
- private:
- void *__IUnknown; /* IUnknown */
- void *__IPropertyPage; /* IPropertyPage */
- void *__IPropertyPage2; /* IPropertyPage2 */
-
- public:
- operator IPropertyPage2*(void) { return (IPropertyPage2*)&__IPropertyPage2; }
- operator IPropertyPage*(void) { return (IPropertyPage*)&__IPropertyPage; }
- operator IUnknown*(void) { return (IUnknown*)&__IUnknown; }
-
- private:
- TPropertyPage* FPropertyPage;
- _di_IPropertyPageSite FPageSite;
- bool FActive;
- bool FModified;
- void __fastcall Modified(void);
-
- protected:
- HIDESBASE HRESULT __stdcall QueryInterface(const GUID &IID, /* out */ void *Obj);
- HRESULT __stdcall SetPageSite(const _di_IPropertyPageSite pageSite);
- HRESULT __stdcall Activate(HWND hwndParent, const Windows::TRect &rc, BOOL bModal);
- HRESULT __stdcall Deactivate(void);
- HRESULT __stdcall GetPageInfo(/* out */ tagPROPPAGEINFO &pageInfo);
- HRESULT __stdcall SetObjects(int cObjects, Activex::PUnknownList pUnkList);
- HRESULT __stdcall Show(int nCmdShow);
- HRESULT __stdcall Move(const Windows::TRect &rect);
- HRESULT __stdcall IsPageDirty(void);
- HRESULT __stdcall Apply(void);
- HRESULT __stdcall Help(wchar_t * pszHelpDir);
- HRESULT __stdcall TranslateAccelerator(Windows::PMsg msg);
- HRESULT __stdcall EditProperty(int dispid);
-
- public:
- virtual void __fastcall InitPropertyPage(void);
- __property TPropertyPage* PropertyPage = {read=FPropertyPage, write=FPropertyPage};
- public:
- /* TAggregatedObject.Create */ __fastcall TPropertyPageImpl(_di_IUnknown Controller) : Axctrls::TAggregatedObject(
- Controller) { }
-
- public:
- /* TObject.Destroy */ __fastcall virtual ~TPropertyPageImpl(void) { }
-
- };
-
- class PASCALIMPLEMENTATION TPropertyPage : public Forms::TCustomForm
- {
- typedef Forms::TCustomForm inherited;
-
- private:
- TPropertyPageImpl* FActiveXPropertyPage;
- System::OleVariant FOleObject;
- Classes::TInterfaceList* FOleObjects;
- HIDESBASE MESSAGE void __fastcall CMChanged(Controls::TCMChanged &Msg);
-
- public:
- __fastcall virtual TPropertyPage(Classes::TComponent* AOwner);
- __fastcall virtual ~TPropertyPage(void);
- void __fastcall Modified(void);
- virtual void __fastcall UpdateObject(void);
- virtual void __fastcall UpdatePropertyPage(void);
- __property System::OleVariant OleObject = {read=FOleObject};
- __property Classes::TInterfaceList* OleObjects = {read=FOleObjects, write=FOleObjects};
- void __fastcall EnumCtlProps(const GUID &PropType, Classes::TStrings* PropNames);
-
- __published:
- __property ActiveControl ;
- __property AutoScroll ;
- __property Caption ;
- __property ClientHeight ;
- __property ClientWidth ;
- __property Ctl3D ;
- __property Color ;
- __property Enabled ;
- __property Font ;
- __property Height ;
- __property HorzScrollBar ;
- __property KeyPreview ;
- __property PixelsPerInch ;
- __property ParentFont ;
- __property PopupMenu ;
- __property PrintScale ;
- __property Scaled ;
- __property ShowHint ;
- __property VertScrollBar ;
- __property Visible ;
- __property Width ;
- __property OnActivate ;
- __property OnClick ;
- __property OnClose ;
- __property OnCreate ;
- __property OnDblClick ;
- __property OnDestroy ;
- __property OnDeactivate ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnHide ;
- __property OnKeyDown ;
- __property OnKeyPress ;
- __property OnKeyUp ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property OnPaint ;
- __property OnResize ;
- __property OnShow ;
- public:
- /* TCustomForm.CreateNew */ __fastcall TPropertyPage(Classes::TComponent* AOwner, int Dummy) : Forms::
- TCustomForm(AOwner, Dummy) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TPropertyPage(HWND ParentWindow) : Forms::TCustomForm(ParentWindow
- ) { }
-
- };
-
- typedef System::TMetaClass*TPropertyPageClass;
-
- class DELPHICLASS TCustomAdapter;
- class PASCALIMPLEMENTATION TCustomAdapter : public System::TInterfacedObject
- {
- typedef System::TInterfacedObject inherited;
-
- private:
- _di_IUnknown FOleObject;
- int FConnection;
- _di_IUnknown FNotifier;
-
- protected:
- bool Updating;
- virtual void __fastcall Changed(void);
- void __fastcall ConnectOleObject(_di_IUnknown OleObject);
- void __fastcall ReleaseOleObject(void);
- virtual void __fastcall Update(void) = 0;
-
- public:
- __fastcall TCustomAdapter(void);
- __fastcall virtual ~TCustomAdapter(void);
- };
-
- class DELPHICLASS TAdapterNotifier;
- class PASCALIMPLEMENTATION TAdapterNotifier : public System::TInterfacedObject
- {
- typedef System::TInterfacedObject inherited;
-
- private:
- void *__IPropertyNotifySink; /* IPropertyNotifySink */
-
- public:
- operator IPropertyNotifySink*(void) { return (IPropertyNotifySink*)&__IPropertyNotifySink; }
-
- private:
- TCustomAdapter* FAdapter;
-
- protected:
- HRESULT __stdcall OnChanged(int dispid);
- HRESULT __stdcall OnRequestEdit(int dispid);
-
- public:
- __fastcall TAdapterNotifier(TCustomAdapter* Adapter);
- public:
- /* TInterfacedObject.Destroy */ __fastcall virtual ~TAdapterNotifier(void) { }
-
- };
-
- __interface IFontAccess;
- typedef System::DelphiInterface<IFontAccess> _di_IFontAccess;
- __interface IFontAccess : public IUnknown /* __guid="{CBA55CA0-0E57-11D0-BD2F-0020AF0E5B81}" */
- {
-
- public:
- virtual void __fastcall GetOleFont(_di_IFontDisp &OleFont) = 0;
- virtual void __fastcall SetOleFont(const _di_IFontDisp OleFont) = 0;
- };
-
- class DELPHICLASS TFontAdapter;
- class PASCALIMPLEMENTATION TFontAdapter : public Axctrls::TCustomAdapter
- {
- typedef Axctrls::TCustomAdapter inherited;
-
- private:
- void *__IChangeNotifier; /* Graphics::IChangeNotifier */
- void *__IFontAccess; /* Axctrls::IFontAccess */
-
- public:
- operator IFontAccess*(void) { return (IFontAccess*)&__IFontAccess; }
- operator IChangeNotifier*(void) { return (IChangeNotifier*)&__IChangeNotifier; }
-
- private:
- Graphics::TFont* FFont;
-
- protected:
- void __fastcall GetOleFont(_di_IFontDisp &OleFont);
- void __fastcall SetOleFont(const _di_IFontDisp OleFont);
- virtual void __fastcall Changed(void);
- virtual void __fastcall Update(void);
-
- public:
- __fastcall TFontAdapter(Graphics::TFont* Font);
- public:
- /* TCustomAdapter.Destroy */ __fastcall virtual ~TFontAdapter(void) { }
-
- };
-
- __interface IPictureAccess;
- typedef System::DelphiInterface<IPictureAccess> _di_IPictureAccess;
- __interface IPictureAccess : public IUnknown /* __guid="{795D4D31-43D7-11D0-9E92-0020AF3D82DA}" */
- {
-
- public:
- virtual void __fastcall GetOlePicture(_di_IPictureDisp &OlePicture) = 0;
- virtual void __fastcall SetOlePicture(const _di_IPictureDisp OlePicture) = 0;
- };
-
- class DELPHICLASS TPictureAdapter;
- class PASCALIMPLEMENTATION TPictureAdapter : public Axctrls::TCustomAdapter
- {
- typedef Axctrls::TCustomAdapter inherited;
-
- private:
- void *__IChangeNotifier; /* Graphics::IChangeNotifier */
- void *__IPictureAccess; /* Axctrls::IPictureAccess */
-
- public:
- operator IPictureAccess*(void) { return (IPictureAccess*)&__IPictureAccess; }
- operator IChangeNotifier*(void) { return (IChangeNotifier*)&__IChangeNotifier; }
-
- private:
- Graphics::TPicture* FPicture;
-
- protected:
- void __fastcall GetOlePicture(_di_IPictureDisp &OlePicture);
- void __fastcall SetOlePicture(const _di_IPictureDisp OlePicture);
- virtual void __fastcall Update(void);
-
- public:
- __fastcall TPictureAdapter(Graphics::TPicture* Picture);
- public:
- /* TCustomAdapter.Destroy */ __fastcall virtual ~TPictureAdapter(void) { }
-
- };
-
- class DELPHICLASS TOleGraphic;
- class PASCALIMPLEMENTATION TOleGraphic : public Graphics::TGraphic
- {
- typedef Graphics::TGraphic inherited;
-
- private:
- _di_IPicture FPicture;
- int __fastcall GetMMHeight(void);
- int __fastcall GetMMWidth(void);
-
- protected:
- virtual void __fastcall Changed(System::TObject* Sender);
- virtual void __fastcall Draw(Graphics::TCanvas* ACanvas, const Windows::TRect &Rect);
- virtual bool __fastcall GetEmpty(void);
- virtual int __fastcall GetHeight(void);
- virtual HPALETTE __fastcall GetPalette(void);
- virtual bool __fastcall GetTransparent(void);
- virtual int __fastcall GetWidth(void);
- virtual void __fastcall SetHeight(int Value);
- virtual void __fastcall SetPalette(HPALETTE Value);
- virtual void __fastcall SetWidth(int Value);
-
- public:
- virtual void __fastcall Assign(Classes::TPersistent* Source);
- virtual void __fastcall LoadFromFile(const System::AnsiString Filename);
- virtual void __fastcall LoadFromStream(Classes::TStream* Stream);
- virtual void __fastcall SaveToStream(Classes::TStream* Stream);
- virtual void __fastcall LoadFromClipboardFormat(Word AFormat, int AData, HPALETTE APalette);
- virtual void __fastcall SaveToClipboardFormat(Word &AFormat, int &AData, HPALETTE &APalette);
- __property int MMHeight = {read=GetMMHeight, nodefault};
- __property int MMWidth = {read=GetMMWidth, nodefault};
- __property _di_IPicture Picture = {read=FPicture, write=FPicture};
- protected:
- /* TGraphic.Create */ __fastcall virtual TOleGraphic(void) : Graphics::TGraphic() { }
-
- public:
- /* TPersistent.Destroy */ __fastcall virtual ~TOleGraphic(void) { }
-
- };
-
- class DELPHICLASS TStringsAdapter;
- class PASCALIMPLEMENTATION TStringsAdapter : public Comobj::TAutoIntfObject
- {
- typedef Comobj::TAutoIntfObject inherited;
-
- private:
- void *__IStrings; /* Stdvcl::IStrings */
- void *__IStringsAdapter; /* Classes::IStringsAdapter */
-
- public:
- operator IStringsAdapter*(void) { return (IStringsAdapter*)&__IStringsAdapter; }
- operator IStrings*(void) { return (IStrings*)&__IStrings; }
-
- private:
- Classes::TStrings* FStrings;
-
- protected:
- void __fastcall ReferenceStrings(Classes::TStrings* S);
- void __fastcall ReleaseStrings(void);
- HRESULT __safecall Get_ControlDefault(int Index, System::OleVariant &Get_ControlDefault_result);
- HRESULT __safecall Set_ControlDefault(int Index, const System::OleVariant Value);
- HRESULT __safecall Count(int &Count_result);
- HRESULT __safecall Get_Item(int Index, System::OleVariant &Get_Item_result);
- HRESULT __safecall Set_Item(int Index, const System::OleVariant Value);
- HRESULT __safecall Remove(int Index);
- HRESULT __safecall Clear(void);
- HRESULT __safecall Add(const System::OleVariant Item, int &Add_result);
- HRESULT __safecall _NewEnum(_di_IUnknown &_NewEnum_result);
-
- public:
- __fastcall TStringsAdapter(Classes::TStrings* Strings);
- public:
- /* TInterfacedObject.Destroy */ __fastcall virtual ~TStringsAdapter(void) { }
-
- };
-
- class DELPHICLASS TReflectorWindow;
- class PASCALIMPLEMENTATION TReflectorWindow : public Controls::TWinControl
- {
- typedef Controls::TWinControl inherited;
-
- private:
- Controls::TControl* FControl;
- bool FInSize;
- MESSAGE void __fastcall WMGetDlgCode(Messages::TMessage &Message);
- HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Message);
- HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
-
- public:
- __fastcall TReflectorWindow(int ParentWindow, Controls::TControl* Control);
- public:
- /* TWinControl.CreateParented */ __fastcall TReflectorWindow(HWND ParentWindow) : Controls::TWinControl(
- ParentWindow) { }
- /* TWinControl.Destroy */ __fastcall virtual ~TReflectorWindow(void) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
- extern PACKAGE GUID Class_DColorPropPage;
- extern PACKAGE GUID Class_DFontPropPage;
- extern PACKAGE GUID Class_DPicturePropPage;
- extern PACKAGE GUID Class_DStringPropPage;
- extern PACKAGE HWND __fastcall ParkingWindow(void);
- extern PACKAGE System::OleVariant __fastcall GetDispatchPropValue(_di_IDispatch Disp, int DispID);
- extern PACKAGE void __fastcall SetDispatchPropValue(_di_IDispatch Disp, int DispID, const System::OleVariant
- &Value);
- extern PACKAGE void __fastcall EnumDispatchProperties(_di_IDispatch Dispatch, const GUID &PropType,
- int VTCode, Classes::TStrings* PropList);
- extern PACKAGE void __fastcall GetOleFont(Graphics::TFont* Font, _di_IFontDisp &OleFont);
- extern PACKAGE void __fastcall SetOleFont(Graphics::TFont* Font, _di_IFontDisp OleFont);
- extern PACKAGE void __fastcall GetOlePicture(Graphics::TPicture* Picture, _di_IPictureDisp &OlePicture
- );
- extern PACKAGE void __fastcall SetOlePicture(Graphics::TPicture* Picture, _di_IPictureDisp OlePicture
- );
- extern PACKAGE void __fastcall GetOleStrings(Classes::TStrings* Strings, Stdvcl::_di_IStrings &OleStrings
- );
- extern PACKAGE void __fastcall SetOleStrings(Classes::TStrings* Strings, Stdvcl::_di_IStrings OleStrings
- );
-
- } /* namespace Axctrls */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Axctrls;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // AxCtrls
-